package TEST;

public class Test02 {

        public static void main(String[] args)
        {
            Test02 station = new Test02();
            int a[] = {1,2,3};
            System.out.println("加油次数");
            for (int i = 0;i <a.length;i++)
            {

                System.out.println((i+1)+"加油次数");
            }
            station.chang(a);
            System.out.print("\n汽油数量");
            for (int j = 0;j<a.length;j++)
            {

                System.out.println(a[j]+"数量");
            }

        }      public void chang(int[] i)
    {
        for (int j = 0;j<i.length;j++)
        {
            i[j] =i[j]*2;
        }
    }
    }


